home *** CD-ROM | disk | FTP | other *** search
- *** ray.h Mon Oct 11 15:00:58 1993
- --- ray.h.frac Mon Oct 11 14:47:19 1993
- ***************
- *** 23,28 ****
- --- 23,36 ----
- #ifndef RAY_H
- #define RAY_H
- /*
- + * Ray types
- + */
- + #define EYE_RAY 1
- + #define SHADOW_RAY 2
- + #define REFLECT_RAY 3
- + #define REFRACT_RAY 4
- +
- + /*
- * Ray
- */
- typedef struct Ray {
- ***************
- *** 31,36 ****
- --- 39,49 ----
- int depth, /* depth in ray tree */
- sample; /* current sample # */
- Float time;
- + Vector viewpoint; /* ray viewpoint */
- + int type; /* EYE_RAY, SHADOW_RAY, ... */
- + Float viewdist, /* for pixelsize computation */
- + width,
- + stretch; /* amount the ray is stretched by transformations */
- struct Medium *media; /* Medium ray is passing through */
- } Ray;
- #endif
-